#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
 
void* thread_run(void* args)
{
  while(1)
  {
    printf("im new thread my tid is:%x\n", pthread_self());
    sleep(1);
  }
}

int main()
{
  pthread_t tid;
  pthread_create(&tid , NULL ,thread_run,(void *) "hello world" );
  while(1)
  {
    printf("main thread id is:%x\n",pthread_self());
    sleep(1);
  }
  return 0;
}
